home *** CD-ROM | disk | FTP | other *** search
- on idleAnimation
- global gvLocaleList, gvCharList, gvCharTalks, SFX_EXT, gAnimLoopTime
- set the mouseDownScript to "handleMouseDown"
- cursor(0)
- set vTime to the timer - gAnimLoopTime
- if (vTime >= 600) and (vTime <= 700) and not soundBusy(1) then
- set vChar to random(count(gvCharList))
- go(string(getAt(gvCharList, vChar)) && "idle")
- else
- if vTime > 1300 then
- set vChar to random(count(gvCharList))
- set gvCharTalks to string(getAt(gvCharList, vChar)) && "Talks"
- set gAnimLoopTime to the timer
- puppetSound(vChar & "Intro1" & SFX_EXT)
- updateStage()
- go(gvCharTalks)
- else
- set vWhichLocale to random(count(gvLocaleList))
- go(getAt(gvLocaleList, vWhichLocale))
- end if
- end if
- end
-
- on waitSound vChannel
- repeat while soundBusy(vChannel)
- nothing()
- end repeat
- end
-
- on GoMain
- global gvTrack, gvCurLetter, gCDPATH, SFX_EXT
- set gvCurLetter to "B"
- puppetSound(0)
- puppetSound(1, the number of cast "B.aif")
- updateStage()
- go("B1", gCDPATH & "Main")
- end
-